/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package otcapp.utiles.paneles;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JLabel;

/**
 *
 * @author diego
 */
public class jDButton extends JLabel{

    private String imagePath;
    private String imageOverPath;
    private String buttonName;

    public jDButton(String imageButtonPath, String imageOverButtonPath) {

        imagePath = imageButtonPath;
        imageOverPath = imageOverButtonPath;

        addMouseListener(new MouseListener() {

            public void mouseClicked(MouseEvent e) {
            }

            public void mousePressed(MouseEvent e) {
            }

            public void mouseReleased(MouseEvent e) {
            }

            public void mouseEntered(MouseEvent e) {
                setIcon(new javax.swing.ImageIcon(imageOverPath));
            }

            public void mouseExited(MouseEvent e) {
                setIcon(new javax.swing.ImageIcon(imagePath));
            }
        });
    }



    public String getImageOverPath() {
        return imageOverPath;
    }

    public void setImageOverPath(String imageOverPath) {
        this.imageOverPath = imageOverPath;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
        setIcon(new javax.swing.ImageIcon(imagePath));
    }

    public String getButtonName() {
        return buttonName;
    }

    public void setButtonName(String buttonName) {
        this.buttonName = buttonName;
    }

}
